package com.day0009;

public class Test4 {

    public static void main(String[] args) {
        Rectangle rectangle = new Rectangle(20,5);

        Circle circle = new Circle(5);
        System.out.println("长方形周长"+rectangle.perimeter());
        System.out.println("长方形面积"+rectangle.area());

        System.out.println("圆形周长"+circle.perimeter());
        System.out.println("圆形面积"+circle.area());

    }
}
